home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 1191 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: li.net!usenet
  2. From: bsilvern@li.net (Bob Silvern)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Borlands c/c++ compiler help!!
  5. Date: Fri, 12 Jan 1996 02:37:11 GMT
  6. Organization: Harmony Graphics
  7. Message-ID: <4d4hh2$s8o@linet02.li.net>
  8. References: <4cu5f6$fg2@vector.wantree.com.au>
  9. NNTP-Posting-Host: lisuser76.li.net
  10. X-Newsreader: Forte Free Agent 1.0.82
  11.  
  12. jpet@wantree.com.au (Jody Petroni) wrote:
  13.  
  14. >Im writing a simple-intermediate application in C I have got a compiler 
  15. >from Borlands which claims to be both for C and C++ .it installs as C++ 3.1
  16. >but compiles my C code satisfactorily except for 2 errors:
  17.  
  18. >1. "Group Overflowed Maximum size:DGROUP"
  19. >2. "Call to function xyz with no prototype"
  20.  
  21. >I have delcared all functions as either void or with their return type
  22. >so I cant quite understand Error 2 . Error 1 is a mystery.
  23.  
  24. >can anyone help!???
  25.  
  26. Error  #1 sounds like you've declared too much static data.  The selected
  27. memory model, found under: "Options,Project,16 Bit Compiler,MemoryModel"
  28. determines the maximum allowed (either 64K or 1MB).  If you've selected Tiny,
  29. Small or Medium, try using Compact, Large or Huge which will give you the 1MB
  30. maximum.   Otherwise, declare any unitialized static data as far instead of the
  31. default near.  Alternatively, dynamically allocate any very large arrays with
  32. functions such as malloc or GlobalAlloc.
  33.  
  34. As for Error #2, sounds like you may have used a declaration such as:
  35. void xyz();
  36. Omiting the calling parameters, even if void, will produce that warning.  Try
  37. instead declaring the function with its paramters, including void, such as:
  38. void xyz(void);
  39.  
  40. Good luck.
  41.  
  42.